package com.example.demo3.impl;

import com.example.demo3.LightSwitch;
import com.example.demo3.TrafficLight;

public class LightSwitchYellowImpl implements LightSwitch {
    @Override
    public void switchToRed(TrafficLight trafficLight) {
        System.out.println("红灯亮起...... ");
    }

    @Override
    public void switchToGreen(TrafficLight trafficLight) {
        System.out.println("绿灯亮起。。。。。 ");
    }

    @Override
    public void switchYellow(TrafficLight trafficLight) {
        System.out.println("当前已经是黄灯了");
    }
}
